package com.jiangjiang.eshop.promotion.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jiangjiang.eshop.order.dto.CouponDTO;
import com.jiangjiang.eshop.promotion.domain.CouponEntity;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface CouponConvert {

    List<CouponDTO> convertEntities2DTOList(List<CouponEntity> entities);

    Page<CouponDTO> convertEntityPage2DTOPage(Page<CouponEntity> selectPage);

    CouponEntity convertDTO2Entity(CouponDTO dto);
}
